{include file='index/_header.html'}
<!--jumbotron-->
<div class="jumbotron text-center">
    <div style="position: absolute;top: 15%;width: 100%;">
        <h2>一鱼框架 - APHP</h2>
        <p>超轻量级快速MVC框架，网站开发从未如此简单！</p>
        <p>
            <a class="btn btn-success" href="https://doc.aphp.top" target="_blank">在线文档</a>
            <a class="btn btn-info" href="https://gitee.com/willphp/aphp" target="_blank">Gitee下载</a>
            <a class="btn btn-primary" href="https://github.com/willphp/aphp" target="_blank">GitHub下载</a>
        </p>
        <p>
            <img alt="version" src="https://img.shields.io/github/v/release/willphp/aphp"/>
            <img alt="filesize" src="https://img.shields.io/github/languages/code-size/willphp/aphp"/>
            <img alt="update" src="https://img.shields.io/github/release-date/willphp/aphp"/>
        </p>
    </div>
</div>
<!--content-->
<div class="container mtn">
    <!--公告-->
    <div class="well clearfix">
        <strong>公告：<span class="text-danger">{:site('site_notice')}</span></strong>
    </div>
    <!--新闻-->
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">最新文章<span class="pull-right"><a href="{:url('news/index')}">更多</a></span></h3>
        </div>
        <div class="panel-body row">
            {php $news=db('news')->cache()->field('id,title,summary,is_top,url')->where('status=1')->order('is_top DESC,id DESC')->limit(4)->select()}
            {foreach $news as $vo}
            <div class="col-md-4 col-lg-3">
                <h4 style="height:20px;overflow: hidden;">{if $vo['is_top']==1:}<span class="text-danger">置顶</span> {/if}<a href="{:url('news/detail',['id'=>$vo['id']])}">{$vo.title}</a></h4>
                <p class="summary">{$vo.summary|str_substr=34}</p>
                <p>
                    {if !empty($vo['url']):}
                    <a class="btn btn-primary" href="{$vo.url}" target="_blank">前往 &raquo;</a>
                    {else:}
                    <a class="btn btn-primary" href="{:url('news/detail',['id'=>$vo['id']])}">查看 &raquo;</a>
                    {/if}
                </p>
            </div>
            {/foreach}
        </div>
    </div>
    <!--产品-->
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">项目产品<span class="pull-right"><a href="{:url('product/index')}">更多</a></span></h3>
        </div>
        <div class="panel-body row">
            {php $product=db('product')->cache()->field('id,title,summary,thumb,price,demo_link,git_link,down_zip')->where('status=1')->order('sort ASC,id DESC')->limit(4)->select()}
            {foreach $product as $vo}
            <div class="col-md-4 col-lg-3">
                <div class="panel panel-default">
                    <a href="{:url('product/detail',['id'=>$vo['id']])}"><img class="card-img-top" src="{:rand_thumb($vo['thumb'], $vo['id'])}" width="100%" alt="title" /></a>
                    <div class="panel-body">
                        <h4 class="card-title"><a href="{:url('product/detail',['id'=>$vo['id']])}">{$vo.title}</a> <span class="pull-right text-danger"> {if $vo['price']>0:}￥{$vo.price}{else:}免费{/if}</span></h4>
                        <p class="card-text summary">{$vo.summary|str_substr=34}</p>
                        <div class="text-right">
                            {!empty $vo['git_link']:}<a class="btn btn-primary btn-sm" href="{$vo.git_link}" target="_blank">仓库 &raquo;</a>{/empty}
                            {!empty $vo['demo_link']:}<a class="btn btn-primary btn-sm" href="{$vo.demo_link}" target="_blank">演示 &raquo;</a>{/empty}
                            {!empty $vo['down_zip']:}<a class="btn btn-primary btn-sm" href="{$vo.down_zip}">下载 &raquo;</a>{/empty}
                        </div>
                    </div>
                </div>
            </div>
            {/foreach}
        </div>
    </div>
    <!--框架特色-->
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">框架特色</h3>
        </div>
        <div class="panel-body row text-center">
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home01.png" alt="Template">
                    <div class="caption">
                        <h3>Template</h3>
                        <p>模板标签可直接读取数据库</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home02.png" alt="DebugBar">
                    <div class="caption">
                        <h3>DebugBar</h3>
                        <p>调试栏可直观显示开发信息</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home03.png" alt="Model">
                    <div class="caption">
                        <h3>Model</h3>
                        <p>模型可自动验证,处理,过滤数据</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home04.png" alt="Filter">
                    <div class="caption">
                        <h3>Filter</h3>
                        <p>自带过滤器处理请求参数</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home10.png" alt="Widget">
                    <div class="caption">
                        <h3>Widget</h3>
                        <p>部件可快速调用缓存数据</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home05.png" alt="ORM">
                    <div class="caption">
                        <h3>ORM</h3>
                        <p>无SQL快速链式操作数据库</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home06.png" alt="Redis">
                    <div class="caption">
                        <h3>Redis</h3>
                        <p>Redis缓存让网站起飞</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home11.png" alt="Validate">
                    <div class="caption">
                        <h3>Validate</h3>
                        <p>让表单验证更方便快捷</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home07.png" alt="Page">
                    <div class="caption">
                        <h3>Page</h3>
                        <p>简单配置快速分页</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home12.png" alt="URL">
                    <div class="caption">
                        <h3>URL</h3>
                        <p>URL重写SEO网址优化</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home08.png" alt="Thumb">
                    <div class="caption">
                        <h3>Thumb</h3>
                        <p>内置缩略图，图片验证码扩展</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-6 col-md-4 col-lg-3">
                <div class="thumbnail">
                    <img src="__STATIC__/themes/__THEME__/img/home09.png" alt="Upload">
                    <div class="caption">
                        <h3>Upload</h3>
                        <p>内置上传扩展，自动缩略图</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--友情链接-->
    <div class="panel panel-default">
        <div class="panel-heading">
            友情链接
        </div>
        <div class="panel-body">
            <a href="https://www.aphp.top" title="一鱼PHP框架" target="_blank">一鱼PHP框架</a>
            {php $links=db('links')->cache()->field('id,title,url')->where('status',1)->order('sort ASC,id ASC')->limit(10)->select()}
            {foreach $links as $link}
            | <a href="{$link.url}" title="{$link.title}" target="_blank">{$link.title}</a>
            {/foreach}
        </div>
    </div>

</div>
<!--footer-->
{include file='index/_footer.html'}
<script src="__STATIC__/themes/__THEME__/js/jquery.particleground.min.js"></script>
<script>
    (function() {
        $('.jumbotron').particleground({ dotColor: 'rgba(255,255,255,0.3)',lineColor: 'rgba(255,255,255,0.2)',density:20000 });
    })();
</script>
</body>
</html>